package com.googlecode.project4uz.demo;


import java.io.*;
import org.openrdf.rio.*;

import com.googlecode.project4uz.encoder.*;

/**
 * Prezentacja funkcjonalnosci kodera.
 *
 * @author Daniel Kur
 */
public class RDFEncoderBeans
{
	/**
	 * Punkt startowy programu.
	 * @param args - nie przyjmuje argumentow z linii polecen!
	 * @throws FileNotFoundException 
	 */
	public static void main(final String[] args) throws FileNotFoundException
	{
		TestHardcoreClass scfs = new TestHardcoreClass();
		/*ClassForSerialize cfs = new ClassForSerialize();
		RefForSerialize ref = new RefForSerialize();
		cfs.klasaZewnetrzna = ref;*/
		
		RDFEncoder e = new RDFEncoder(RDFFormat.RDFXML, Serializer.BEANS, new BufferedOutputStream(new FileOutputStream("testBeans1.rdf")));
		e.writeObject(scfs);
		
		e.close();
	}
}
